﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Xml;

namespace Food
{
	public class DayMenu
	{
		public List<FoodCategory> Categories;

		public DayMenu(XmlNode node)
		{
			Categories = new List<FoodCategory>();

			foreach (XmlNode categoryNode in node)
			{
				FoodCategory newCategory = new FoodCategory(categoryNode);
				Categories.Add(newCategory);
			}
		}

		public List<Food> GetMenuItemsOfCategory(string category)
		{
			List<Food> list = new List<Food>();

// 			foreach (Food item in Categories)
// 			{
// 				if (item.Category == category)
// 				{
// 					list.Add(item);
// 				}
// 			}

			return list;

		}

		 
	}
}
